package com.suneee.trades.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.suneee.orm.annotation.Column;
import com.suneee.orm.annotation.Entity;
import com.suneee.orm.annotation.GeneratedValue;
import com.suneee.orm.annotation.GenerationType;
import com.suneee.orm.annotation.Id;
import com.suneee.orm.annotation.Table;
import com.suneee.orm.annotation.Transient;
import com.suneee.shop.entity.Shop;

@Entity
@Table(name="t_trades_order")
public class TradesOrder implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="order_id")
	private Integer orderId;

	@Column(name="oid")
	private String oid;

	@Column(name="tid")
	private String tid;

	@Column(name="pic_path")
	private String picPath;

	@Column(name="item_meal_name")
	private String itemMealName;

	@Column(name="refund_status")
	private String refundStatus;

	@Column(name="outer_iid")
	private String outerIid;

	@Column(name="snapshot_url")
	private String snapshotUrl;

	@Column(name="snapshot")
	private String snapshot;

	@Column(name="timeout_action_time")
	private Date timeoutActionTime;

	@Column(name="buyer_rate")
	private Boolean buyerRate;

	@Column(name="seller_rate")
	private Boolean sellerRate;

	@Column(name="cid")
	private String cid;

	@Column(name="status")
	private String status;

	@Column(name="title")
	private String title;

	@Column(name="type")
	private String type;

	@Column(name="price")
	private String price;

	@Column(name="num_iid")
	private String numIid;

	@Column(name="item_meal_id")
	private String itemMealId;

	@Column(name="sku_id")
	private String skuId;

	@Column(name="num")
	private Integer num;

	@Column(name="outer_sku_id")
	private String outerSkuId;

	@Column(name="order_from")
	private String orderFrom;

	@Column(name="total_fee")
	private String totalFee;

	@Column(name="payment")
	private String payment;

	@Column(name="discount_fee")
	private String discountFee;

	@Column(name="adjust_fee")
	private String adjustFee;

	@Column(name="modified")
	private Date modified;

	@Column(name="sku_properties_name")
	private String skuPropertiesName;

	@Column(name="refund_id")
	private String refundId;

	@Column(name="is_oversold")
	private Boolean isOversold;

	@Column(name="end_time")
	private Date endTime;

	@Column(name="consign_time")
	private Date consignTime;

	@Column(name="part_mjz_discount")
	private BigDecimal partMjzDiscount;

	@Column(name="divide_order_fee")
	private BigDecimal divideOrderFee;

	@Column(name="split_num")
	private Integer splitNum;
	
	@Transient
	private String promotionId;
	
	@Transient
	private String promotionName;
	
	@Transient
	private String salePrice;
	
	@Transient
	private Integer quantity;
	
	@Column(name="is_after_sale")
	private Integer isAfterSale;
	
	@Transient
	private Shop shop;
	
//	@Column(name="is_changed")
//	private Boolean isChanged;
	
//	@Column(name="is_new")
//	private Boolean isNew;

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public String getOid() {
		return oid;
	}

	public void setOid(String oid) {
		this.oid = oid;
	}

	public String getTid() {
		return tid;
	}

	public void setTid(String tid) {
		this.tid = tid;
	}

	public String getPicPath() {
		return picPath;
	}

	public void setPicPath(String picPath) {
		this.picPath = picPath;
	}

	public String getItemMealName() {
		return itemMealName;
	}

	public void setItemMealName(String itemMealName) {
		this.itemMealName = itemMealName;
	}

	public String getRefundStatus() {
		return refundStatus;
	}

	public void setRefundStatus(String refundStatus) {
		this.refundStatus = refundStatus;
	}

	public String getOuterIid() {
		return outerIid;
	}

	public void setOuterIid(String outerIid) {
		this.outerIid = outerIid;
	}

	public String getSnapshotUrl() {
		return snapshotUrl;
	}

	public void setSnapshotUrl(String snapshotUrl) {
		this.snapshotUrl = snapshotUrl;
	}

	public String getSnapshot() {
		return snapshot;
	}

	public void setSnapshot(String snapshot) {
		this.snapshot = snapshot;
	}

	public Date getTimeoutActionTime() {
		return timeoutActionTime;
	}

	public void setTimeoutActionTime(Date timeoutActionTime) {
		this.timeoutActionTime = timeoutActionTime;
	}

	public Boolean getBuyerRate() {
		return buyerRate;
	}

	public void setBuyerRate(Boolean buyerRate) {
		this.buyerRate = buyerRate;
	}

	public Boolean getSellerRate() {
		return sellerRate;
	}

	public void setSellerRate(Boolean sellerRate) {
		this.sellerRate = sellerRate;
	}

	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getNumIid() {
		return numIid;
	}

	public void setNumIid(String numIid) {
		this.numIid = numIid;
	}

	public String getItemMealId() {
		return itemMealId;
	}

	public void setItemMealId(String itemMealId) {
		this.itemMealId = itemMealId;
	}

	public String getSkuId() {
		return skuId;
	}

	public void setSkuId(String skuId) {
		this.skuId = skuId;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public String getOuterSkuId() {
		return outerSkuId;
	}

	public void setOuterSkuId(String outerSkuId) {
		this.outerSkuId = outerSkuId;
	}

	public String getOrderFrom() {
		return orderFrom;
	}

	public void setOrderFrom(String orderFrom) {
		this.orderFrom = orderFrom;
	}

	public String getTotalFee() {
		return totalFee;
	}

	public void setTotalFee(String totalFee) {
		this.totalFee = totalFee;
	}

	public String getPayment() {
		return payment;
	}

	public void setPayment(String payment) {
		this.payment = payment;
	}

	public String getDiscountFee() {
		return discountFee;
	}

	public void setDiscountFee(String discountFee) {
		this.discountFee = discountFee;
	}

	public String getAdjustFee() {
		return adjustFee;
	}

	public void setAdjustFee(String adjustFee) {
		this.adjustFee = adjustFee;
	}

	public Date getModified() {
		return modified;
	}

	public void setModified(Date modified) {
		this.modified = modified;
	}

	public String getSkuPropertiesName() {
		return skuPropertiesName;
	}

	public void setSkuPropertiesName(String skuPropertiesName) {
		this.skuPropertiesName = skuPropertiesName;
	}

	public String getRefundId() {
		return refundId;
	}

	public void setRefundId(String refundId) {
		this.refundId = refundId;
	}

	public Boolean getIsOversold() {
		return isOversold;
	}

	public void setIsOversold(Boolean isOversold) {
		this.isOversold = isOversold;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getConsignTime() {
		return consignTime;
	}

	public void setConsignTime(Date consignTime) {
		this.consignTime = consignTime;
	}

	public BigDecimal getPartMjzDiscount() {
		return partMjzDiscount;
	}

	public void setPartMjzDiscount(BigDecimal partMjzDiscount) {
		this.partMjzDiscount = partMjzDiscount;
	}

	public BigDecimal getDivideOrderFee() {
		return divideOrderFee;
	}

	public void setDivideOrderFee(BigDecimal divideOrderFee) {
		this.divideOrderFee = divideOrderFee;
	}

	public Integer getSplitNum() {
		return splitNum;
	}

	public void setSplitNum(Integer splitNum) {
		this.splitNum = splitNum;
	}

	public String getPromotionId() {
		return promotionId;
	}

	public void setPromotionId(String promotionId) {
		this.promotionId = promotionId;
	}

	public String getPromotionName() {
		return promotionName;
	}

	public void setPromotionName(String promotionName) {
		this.promotionName = promotionName;
	}

	public String getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(String salePrice) {
		this.salePrice = salePrice;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public Integer getIsAfterSale() {
		return isAfterSale;
	}

	public void setIsAfterSale(Integer isAfterSale) {
		this.isAfterSale = isAfterSale;
	}

	public Shop getShop() {
		return shop;
	}

	public void setShop(Shop shop) {
		this.shop = shop;
	}

//	public Boolean getIsChanged() {
//		return isChanged;
//	}
//
//	public void setIsChanged(Boolean isChanged) {
//		this.isChanged = isChanged;
//	}
//
//	public Boolean getIsNew() {
//		return isNew;
//	}
//
//	public void setIsNew(Boolean isNew) {
//		this.isNew = isNew;
//	}
	
}
